﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace VoxelBlock.VoxelBlock3D
{
    public struct SimpleVoxel
    {
        public int uvKey;
        public byte selectKey;
        public Vector3Int position;

        public SimpleVoxel(Vector3Int position, int uvKey)
        {
            this.uvKey = uvKey;
            this.position = position;
            this.selectKey = 255;
        }
        public SimpleVoxel(Vector3Int position, int uvKey, byte selectKey)
        {
            this.uvKey = uvKey;
            this.position = position;
            this.selectKey = selectKey;
        }
    }
    public class SerializeVoxelDatas
    {
        public IEnumerable<Vector3Int> positions;
        public IEnumerable<SimpleVoxel> voxels;
        public SerializeVoxelDatas(IEnumerable<SimpleVoxel> voxels)
        {
            this.voxels = voxels;
        }
        public SerializeVoxelDatas(IEnumerable<Vector3Int> positions)
        {
            this.positions = positions;
        }
    }
}